#include <QDebug>
#include "BasePose.h"
#include "AnimMontage_p.h"
#include "AnimMontageUtils.h"

using namespace QSSGSceneDesc;

BasePose::BasePose()
{

}

Pose BasePose::getEntry()
{
    Pose ret;

    if(!m_source)
    {
        return {};
    }

    auto _P = m_source->_P;
    QMutexLocker locker(&_P->mutex);
    if(!_P->scene)
    {
        return {};
    }
    return _P->baseEntrys;
}

AnimSource *BasePose::source() const
{
    return m_source;
}

void BasePose::setSource(AnimSource *newSource)
{
    if (m_source == newSource)
        return;
    m_source = newSource;
    emit sourceChanged();
}
